﻿using System.Collections.Generic;
using System.Collections.ObjectModel;
using Telerik.Windows.Controls;

namespace Samurai.WorkflowGraph.ViewModels
{
    public class WorkflowListViewModel : ViewModelBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="WorkflowListViewModel"/> class.
        /// </summary>
        /// <param name="workflows">The workflows.</param>
        public WorkflowListViewModel(IEnumerable<Models.Workflow> workflows)
        {
            Workflows = new ObservableCollection<Models.Workflow>(workflows);
        }

        /// <summary>
        /// Gets or sets the workflows.
        /// </summary>
        /// <value>
        /// The workflows.
        /// </value>
        public ObservableCollection<Models.Workflow> Workflows { get; set; }

        public Models.Workflow SelectedWorkflow { get; set; }
    }
}
